/*
 * Copyright (c) 2005 - 2007 metadude.com, All rights reserved.
 * Email: community@polarion.org
 *
 * This program and the accompanying materials are made available under the
 * terms of the GNU General Public License 2.0 (the "License"). You may not use
 * this file except in compliance with the License. Copy of the License is
 * located in the file LICENSE.txt in the project distribution. You may also
 * obtain a copy of the License at http://www.gnu.org/licenses/gpl.html
 *
 *
 * METADUDE.COM MAKES NO REPRESENTATIONS OR WARRANTIES
 * ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESSED OR IMPLIED,
 * INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. POLARION SOFTWARE
 * SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT
 * OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.
 *
 */

using System;
using NUnit.Framework;
using Poba.Core.Drivers;

namespace poba.tests.UnitTests.Core.Drivers {
    [TestFixture]
    public class TestIEDriver {
        [Test]
        public void ClickAnchor() {
            IEDriver driver = new IEDriver();
            driver.Navigate(Environment.CurrentDirectory +  @"..\..\..\TestData\Start.htm");
            driver.ClickAnchor("DestinationAnchor");
            Assert.AreEqual("Destination", driver.GetElementById("Destination").innerText) ;
            driver.Close();
        }
    }
}